import request from '../../utils/request'

export function initTeaAdmiss(page) {
  return request({
    url: '/teacher-admiss/get/' + page,
    method: 'get'
  })
}

export function initAdmiss() {
  return request({
    url: '/admission/get',
    method: 'get'
  })
}

export function getTeaName(name) {
  return request({
    url: '/teacher-admiss/getName/' + name + '/' + 1,
    method: 'get'
  })
}

export function del(teacherId) {
  return request({
    url: '/teacher-admiss/del/' + teacherId,
    method: 'delete'
  })
}

export function editTeaAdmiss(admiss) {
  return request({
    url: '/teacher-admiss/update',
    method: 'post',
    data: admiss
  })
}


export function addTeaAdmiss(admiss) {
  return request({
    url: '/teacher-admiss/add',
    method: 'post',
    data: admiss
  })
}
